home *** CD-ROM | disk | FTP | other *** search
/ MacPeople 2001 February 15 / MACPEOPLE-2001-02-15.ISO.7z / MACPEOPLE-2001-02-15.ISO / オンラインウエア / 厳選オンラインウエア100 / マルチメディア / iView Multimedia 3.8.4ト.sea / iView Multimedia 3.8.4ƒ / AppleScript Support / media object scripts < prev    next >
Text File  |  1999-12-19  |  3KB  |  88 lines

  1. tell application "iView Multimedia 3.7.1"
  2.     
  3.     
  4.     -- A SIMPLE ONE TO GET STARTED
  5.     -- count objects in window 1    
  6.     
  7.     
  8.     -- THE FOLLOWING SAMPLES DEMOSTRATE HOW TO GET/SET
  9.     -- A LIST OF PROPERTIES GROUPED IN AN APPLE SCRIPT RECORD
  10.     -- tell window 1
  11.     -- [ get generic properties of a single object (read only) ]
  12.     -- get the properties of object 1
  13.     -- get the name of object 1
  14.     -- get the name of object before object 3
  15.     
  16.     -- [ get media properties of a single object (read only) ]
  17.     -- get the media info of object 1
  18.     -- get the file type of the media info of object 1
  19.     
  20.     -- [ get digital camera info of a single object (read only) ]
  21.     -- get the photo info of object 13
  22.     -- get the camera of the photo info of object 13
  23.     -- get the ISO speed of object 13
  24.     
  25.     -- [ various samples for getting/setting annotations of a single object ]
  26.     -- get the annotations of object 1
  27.     
  28.     -- set temp to the annotations of object 1
  29.     -- get the caption of temp
  30.     -- or
  31.     -- get the caption of the annotations of object 1
  32.     -- or
  33.     -- get the caption of object 1
  34.     -- get the data size of the caption of object 1
  35.     
  36.     -- set the annotations of object 3 to {caption:"ae caption", writer:"ae writer"}
  37.     -- set the annotations of object 3 to {keywords:{"aekey1", "aekey2", "aekey3", "aekey4"}}
  38.     
  39.     -- set the keywords of object 6 to the keywords of object 1
  40.     
  41.     -- set myKeys to the keywords of object 1
  42.     -- if get the number of items in myKeys ウ 1 then
  43.     --    set item 1 of myKeys to "changed key 1"
  44.     --    set the keywords of object 1 to myKeys
  45.     -- end if
  46.     -- end tell
  47.     
  48.     
  49.     -- GET ID'S FOR OBJECTS WITH DESIRED PROPERTIES
  50.     -- tell window 1
  51.     -- get the name of every object of window 1
  52.     -- get the name of every object whose mark id is not 0
  53.     -- get the index of every object whose name contains "00"
  54.     -- set the mark id of every object whose name contains "00" to 2
  55.     -- set the annotations of every object whose name contains "00" to {caption:"hisser"}
  56.     -- end tell
  57.     
  58.     
  59.     -- MOVE & DELETE MEDIA OBJECTS
  60.     -- tell window 1
  61.     --    delete (every object whose name contains "mac")
  62.     -- end tell
  63.     
  64.     -- this one has a bug
  65.     -- get the index of every object of every window --  whose name contains "ac"
  66.     
  67.     -- AND FINALLY A COMPLEX ONE TO CLOSE...
  68.     -- set x to (the index of the second object of window 1 whose name contains "julian") as integer
  69.     -- set the annotations of object x of window 1 to {caption:"hisser*"}
  70.     
  71.     
  72. end tell
  73.  
  74.  
  75. -- A snippet that demonstrates how to grab
  76. -- a thumbnail from an iView catalog.
  77. -- on getThumbnail()
  78. --    tell application "iView Multimedia PPC"
  79. --        tell window 1
  80. --            set theThumb to the thumbnail of object 2 as picture
  81. --        end tell
  82. --    end tell
  83. --    
  84. --    tell application "Finder"
  85. --        activate
  86. --        set the clipboard to theThumb as picture
  87. --    end tell
  88. --end getThumbnail